{include file="header.html"}
<div class="rbox"> 
<ul class="nav nav-tabs">
	<li><a href="{$appadmin}?m=stat_product_day&a=all">产品日销量统计</a></li>
	<li class="active"><a href="{$appadmin}?m=stat_product_week">产品周销量统计</a></li>
	<li><a href="{$appadmin}?m=stat_product_month">产品月销量统计</a></li>
</ul>
</ul>

<form method="get" class="row search-form">
	<input type="hidden" name="m" value="stat_product_day">
    <input type="hidden" name="a" value="all">
  	<select name="k">
  		<option {if get('k') eq 'ymdian'} selected="" {/if} value="ymdian">夜猫店</option>
  		<option {if get('k') eq 'koudai'} selected="" {/if} value="koudai">校园超市</option>
  		<option {if get('k') eq 'shop'} selected="" {/if} value="shop">学生街</option>
  	</select>
      <label>日期</label>
      <input type="text" value="{$smarty.get.kday}" name="kday" onClick="WdatePicker({dateFmt:'yyyyWW'})">
   
 
 
    <button type="submit" class="btn">查询</button>
 
</form>
 
<table class="table">
	<thead>
		<tr>
			<th>日期（周）</th>
			<th>产品名称</th>
			<th>销售数量</th>
			<th>合计金额</th>
			<th>合计成本</th>
			<th>合计利润</th>
		</tr>
	</thead>
	<tbody>
		{foreach item=c from=$list}
		<tr>
			<td>{$c.kweek}</td>
			<td>{$c['title']} </td>
			<td>{$c.ordernum}</td>
			<td>{$c.money}</td>
			<td>{$c.costmoney}</td>
			<td>{$c.profitmoney}</td>
		</tr>
		
		{/foreach}
	</tbody>
	
</table> 
 
<div>{$pagelist}</div>
{include file="footer.html"}
  
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>
</div>
</body>
</html>